package com.fuqi.android.zhongcai.base.request.result;

import com.fuqi.android.zhongcai.base.view.widget.wheelwidget.model.IPickerViewData;
import com.fuqi.framework.utils.StringUtil;
import com.google.gson.annotations.SerializedName;

/**
 * Created by Lenovo on 2016/9/27.
 */
public class GetStaffResult implements IPickerViewData {

    @Override
    public String getPickerViewText() {
        if(StringUtil.isEmpty(name))
            return "未知";
        return this.name;
    }

    @SerializedName("USER_ID")
    private String userId;
    @SerializedName("NAME")
    private String name;
    @SerializedName("PHONE")
    private String phone;
    @SerializedName("USERATTACH_ID")
    private String userattachId;

    public GetStaffResult(String userId, String name,String phone){
        this.userId = userId;
        this.name = name;
        this.phone = phone;
    }

    public GetStaffResult(){

    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getUserattachId() {
        return userattachId;
    }

    public void setUserattachId(String userattachId) {
        this.userattachId = userattachId;
    }
}
